package com.jingan.nursinghome.regulatory.model;

import java.io.Serializable;

import cn.android.support.v7.lib.sin.crown.utils.TimeUtils;

/**
 * 巡检信息
 * Created by 彭治铭 on 2018/4/5.
 */

public class Qfinfo implements Serializable{

    /**
     * id : 325
     * routing_inspection_time : 2018-04-05 08:48:11
     * total : 1050
     * total_hair : 116
     * scoring_rate : 11
     * account : user1
     */

    private String id;
    private String jly;//巡检机构。【自己加的】
    private String routing_inspection_time;//巡检时间
    private String total;//总分
    private String total_hair;//得分
    private String scoring_rate;//得分率
    private String account;//巡检人

    private String date;//日期
    private String time;//时间

    private String signature;//签名
    private String lname;//主要沟通人员
    private String remark;//备注
    private String name;//套题名称

    public String getDate() {
        if(date==null&&routing_inspection_time!=null){
            date=TimeUtils.getInstance().getAutoTime(routing_inspection_time,"yyyy-MM-dd HH:mm:ss","yyyy-MM-dd");
        }
        return date;
    }

    public String getTime() {
        if(time==null&&routing_inspection_time!=null){
            time=TimeUtils.getInstance().getAutoTime(routing_inspection_time,"yyyy-MM-dd HH:mm:ss","HH:mm:ss");
        }
        return time;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRouting_inspection_time() {
        return routing_inspection_time;
    }

    public void setRouting_inspection_time(String routing_inspection_time) {
        this.routing_inspection_time = routing_inspection_time;
    }

    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public String getTotal_hair() {
        return total_hair;
    }

    public void setTotal_hair(String total_hair) {
        this.total_hair = total_hair;
    }

    public String getScoring_rate() {
        return scoring_rate;
    }

    public void setScoring_rate(String scoring_rate) {
        this.scoring_rate = scoring_rate;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getJly() {
        return jly;
    }

    public void setJly(String jly) {
        this.jly = jly;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getLname() {
        return lname;
    }

    public void setLname(String lname) {
        this.lname = lname;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
